adTempus API
PreviousUpNext
IJob::ExecuteFromStep Method

Executes the job from the specified step

C++
HRESULT ExecuteFromStep(BSTR stepOID, BSTR checkpoint, long options);
C#
ExecuteFromStep(String stepOID, String checkpoint, long options);
Visual Basic
Sub ExecuteFromStep(stepOID As String, checkpoint As String, options As long)
Parameters 
Description 
[in] BSTR stepOID 
The OID of the job step execution should begin with. 
[in] BSTR checkpoint 
The checkpoint value to pass to the job, or an empty string if no checkpoint is to be used. 
[in] long options 
/Options that control execution. Use any combination of the ExecutionOptionsEnum values, which correspond to the options you see when you use the Execute command in the user interface. 

You must have saExecute permission for the job, or the method will fail with error ADT_E_NO_PERMISSION. 

This method submits the job for execution, but does not provide any feedback regarding the status of the job. To determine whether the job was successfully executed you must check the job's status or execution history. 

If Distributed Scheduling is being used, use IJobAgentJoin.ExecuteFromStep to run the job on a specific agent. 

Execution begins with the specified step, and continues according to the StepExecutionRule

adTempus API Reference version 3.0.0.0, revised 10/30/2008